package com.pyue.eam.admin.api.entity.regi;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.pyue.eam.admin.api.base.BaseEntity;
import com.pyue.eam.admin.api.mate.BindType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * 任务方案
 *
 * @date 2023-12-09 20:06:19
 */
@Data
@TableName("cq_task_plan")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "任务方案")
public class CqTaskPlanEntity extends BaseEntity {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 任务id
     */
    @Schema(description = "任务id")
    private Long taskId;

    /**
     * 团id
     */
    @Schema(description = "团id")
    private Long regiId;

    /**
     * 任务名称
     */
    @Schema(description = "任务名称")
    private String planName;

    /**
     * 需求人数
     */
    @Schema(description = "需求人数")
    private Integer perNum;

    /**
     * 计划开始
     */
    @Schema(description = "计划开始")
    private LocalDate planStart;

    /**
     * 计划结束
     */
    @Schema(description = "计划结束")
    private LocalDate planEnd;

    /**
     * 预计质检数量
     */
    @Schema(description = "预计质检数量")
    private Integer planPartNum;

    /**
     * 工时费
     */
    private Double workHour;

    /**
     * 工时长-每件费用｜小时数｜天数
     */
    private Double hourPrice;

    /**
     * 招工策略：计时,计件,包天
     */
    @Schema(description = "招工策略：计时,计件,包天")
    // @FieldBind(type = BindType.DICT + "tactics_type", target = "tacticsTrans")
    private String tactics;

    @TableField(exist = false)
    private String tacticsTrans;

    /**
     * 附件
     */
    @Schema(description = "附件")
    private String fileIds;

    /**
     * 总价格
     */
    @Schema(description = "总价格")
    private Double countPrice;

    /**
     * 头像
     */
    // @TableField(exist = false)
    private String chargeAvatar;

    /**
     * 团名称
     */
    // @TableField(exist = false)
    private String regiName;

}
